/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const orderRouter = {
  path: '/order',
  component: Layout,
  name: 'order',
  meta: {
    title: '訂單管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'orderRecord',
      component: () => import('@/views/order/orderRecord.vue'),
      name: 'orderRecord',
      meta: { title: '訂單記錄', noCache: true }
    },
    {
      path: 'refund',
      component: () => import('@/views/order/refund.vue'),
      name: 'refund',
      meta: { title: '退款管理', noCache: true }
    },
    {
      path: 'reward',
      component: () => import('@/views/order/reward.vue'),
      name: 'reward',
      meta: { title: '打賞記錄', noCache: true }
    },
    {
      path: 'evaluate',
      component: () => import('@/views/order/evaluate.vue'),
      name: 'evaluate',
      meta: { title: '評價列表', noCache: true }
    },
    {
      path: 'editRefund',
      component: () => import('@/views/order/editRefund.vue'),
      name: 'editRefund',
      meta: { title: '編輯', hidden: true }
    }



  ]
};

export default orderRouter;
